package cn.kai.ymcc.constants;

/**
 * @Author 12469
 * @Date 2022/7/15 10:55
 * @PackageName:cn.kai.ymcc.constants
 * @ClassName: YmccBusinessError
 * @Description: TODO
 * @Version 1.0
 */
public enum YmccBusinessError {
    ERROR_EXCEPTION_NOT_NULL_PARAM("4001","参数不能为空！！！"),//参数

    COMMON_ERROR_EXCEPTION_NOT_NULL_IMGCODEKEY  ("4101","图像验证码Key不能为空！"),
    COMMON_ERROR_EXCEPTION_PHONE_NO_EMPTY("4102", "手机号不能为空"),
    COMMON_ERROR_EXCEPTION_SERIOUS("4103", "朋友，手速不要太快！！"),
    COMMON_ERROR_EXCEPTION_PHONE_ILLEGAL("4104", "手机号不合法"),
    COMMON_ERROR_EXCEPTION_NOT_NULL_IMGCODEVALUE("4105", "请先输入图形验证码！"),
    COMMON_ERROR_EXCEPTION_IMGCODEVALUE_MISTAKE("4106", "请输入正确的图形验证码！"),

    USER_ERROR_EXCEPTION_SMS_EMPTY("4201", "短信验证码失效！"),
    USER_ERROR_EXCEPTION_SMSCODE_NOT_EQUALS("4202", "验证码输入错误！"),
    USER_ERROR_EXCEPTION_EXISTS("4203", "用户已存在！"),

    COURSE_ERROR_EXCEPTION_NO_EMPTY("4301","课程不能为空！"),
    COURSE_ERROR_EXCEPTION_STATUS_ERR("4302","课程状态不满足！");

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误描述
     */
    private String message;

    YmccBusinessError(String code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
